import request from '@/utils/request';
// 接单管理

// 缴纳明细列表
export async function paymentDetailsList(params) {
  return request(`/nsApi/recvAdd/queryPayDetail`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 接单增员详情
export async function orderDetails(params) {
  return request(`/nsApi/recvAdd/getDetail`, {
    method: 'POST',
    body: params,
  });
}

// 获取供应商名称
export async function getSupplyList(params) {
  return request('/nsApi/supplier/querySuppList', {
    method: 'POST',
    body: params,
  });
}
// 接单增员详情
export async function getcustNamesList(params) {
  return request(`/nsApi/customer/custNameListBySupp`, {
    method: 'POST',
    body: params,
  });
}

// 接单减员员详情
// 详情中的基本信息
export async function recvdorderDetails(params) {
  return request(`/nsApi/recvDedu/recvd/getDetail`, {
    method: 'POST',
    body: params,
  });
}
// 页签查询
export async function getReceiptTagList(params) {
  return request(`/nsApi/recvAdd/count/isHasData`, {
    method: 'POST',
    body: params,
  });
}

// 增员列表
export async function increasePersonnelList(params) {
  return request(`/nsApi/recvAdd/page`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 增员接单的标记问题人员
export async function getproselectedList(params) {
  return request(`/nsApi/recvAdd/probObjs/list`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 减员接单的标记问题人员
export async function getAttritionProselectedList(params) {
  return request(`/nsApi/recvDedu/probObjs/list`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 增员接单
export async function freceiptfile(params) {
  return request(`/nsApi/recvAdd/recvOrd`, {
    method: 'POST',
    body: params,
  });
}
// 增员回单
export async function backReceipt(params) {
  return request(`/nsApi/recvAdd/returnOrder/save`, {
    method: 'POST',
    body: params,
  });
}

// 减员回单
export async function backReceipts(params) {
  return request(`/nsApi/recvDedu/order/return`, {
    method: 'POST',
    body: params,
  });
}

// 通知签约方
export async function notifyctring(params) {
  return request(`/nsApi/recvProb/sendSupp/notice`, {
    method: 'POST',
    body: params,
  });
}

// 增员回单
export async function receiptinface(params) {
  return request(`/nsApi/recvAdd/returnOrder/detail`, {
    method: 'POST',
    body: params,
  });
}

// 减员回单
export async function receiveordptinface(params) {
  return request(`/nsApi/recvDedu/return/detail`, {
    method: 'POST',
    body: params,
  });
}

// 问题人员导出
export async function pespersonnelexport(params) {
  return request(`/nsApi/recvProb/export`, {
    method: 'POST',
    body: params,
  });
}

// 已接单导出
export async function personnelexport(params) {
  return request(`/nsApi/recvAdd/recvd/export`, {
    method: 'POST',
    body: params,
  });
}

// 查看协议
export async function lookagreement(params) {
  return request(`/nsApi/recvAdd/getSuppProt`, {
    method: 'POST',
    body: params,
  });
}

// 增员回单修改
export async function receiptModification(params) {
  return request(`/nsApi/recvAdd/recvAddInfo/update`, {
    method: 'POST',
    body: params,
  });
}

// 减员回单修改
export async function receiptModelification(params) {
  return request(`/nsApi/recvDedu/recvDecuInfo/update`, {
    method: 'POST',
    body: params,
  });
}

// 减员列表
export async function reduceemployeeList(params) {
  return request(`/nsApi/recvDedu/page`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 减员详情
export async function reduceemployeeDetail(params) {
  return request(`/nsApi/recvDedu/recvd/getDetail`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 减员接单
export async function reduceemployeeReceipt(params) {
  return request(`/nsApi/recvDedu/recv`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 通知签约方
export async function noticeSign(params) {
  return request(`/nsApi/recvProb/sendSupp/notice`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 标记问题人员
export async function signPro(params) {
  return request(`/nsApi/recvProb/recvCreate`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 问题人员列表
export async function getProList(params) {
  return request(`/nsApi/recvProb/page`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 问题人员详情中的基本信息
export async function getProDetail(params) {
  return request(`/nsApi/recvProb/detail`, {
    method: 'POST',
    body: params,
  });
}
// 问题人员详情中的反馈和标记
export async function getFeedback(params) {
  return request(`/nsApi/recvProb/fdbk/create`, {
    method: 'POST',
    body: params,
  });
}

// 接单管理
// 减员列表：页签数量
export async function empTabNum(params) {
  return request(`/nsApi/recvDedu/getRecvDeduCount`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 减员列表：接单
export async function receiveTask(params) {
  return request(`/nsApi/recvDedu/recv`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 批量接单增员：接单
export async function getTwohouseMessage(params) {
  return request(`/nsApi/recvAdd/batch/recv/injList`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 批量接单增员点击确定：接单
export async function getbatchConnec(params) {
  return request(`/nsApi/recvAdd/batch/recv`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 增员：取消接单
export async function cancelReceiveAddemp(params) {
  return request(`/nsApi/recvAdd/recv/cancel`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 批量接单增员点击确定：接单
export async function getBatchAcceList(params) {
  return request(`/nsApi/recvAdd/recvOrd`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 接单管理增员-取消回单详情接口 author-xxl
export async function orderReturnDetails(params) {
  return request(`/nsApi/recvAdd/return/cancel/detail`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 减员：取消接单
export async function cancelReceive(params) {
  return request(`/nsApi/recvDedu/recv/cancel`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 接单管理增员-产品险种取消回单接口 author-xxl
export async function pdCancelReceipt(params) {
  return request(`/nsApi/recvAdd/return/cancel`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 接单管理减员-产品险种取消回单接口 author-xxl
export async function reduceCancelReceipt(params) {
  return request(`/nsApi/recvDedu/return/cancel`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 接单管理-增员任务-已接单-获取员工联系详情信息 author-xxl
export async function getEmpContact(params) {
  return request(`/nsApi/recvAdd/getEmpContact`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 接单管理-增员任务-已接单-获取缴费人员类别 author-xxl
export async function getInsIdeDetail(params) {
  return request(`/csApi/empSendCreateService/getInsIdeList`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 接单管理-增员任务-已接单-修改缴费人员类别 author-xxl
export async function updateInsIde(params) {
  return request(`/nsApi/recvAdd/empContact/update/insIde`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 接单管理-增员任务-已接单-员工联系提交 author-xxl
export async function insertEmpContact(params) {
  return request(`/nsApi/recvAdd/insertEmpContact`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 接单管理-增员任务 回单详情-修改缴费人员类别
export async function updateInsIdeReceipt(params) {
  return request(`/nsApi/recvAdd/recvAddInfo/update`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 接单：获取或者工伤二级户
export async function getTaskOrinjAcc(params) {
  return request(`/nsApi/recvAdd/elasticFrameRecvOrd`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 接单：批量接单
export async function batchReceiveOrder(params) {
  return request(`/nsApi/recvAdd/recvOrd`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 接单：获取batchNo
export async function getBatchId(params) {
  return request(`/nsApi/recvAdd/bathcRecvOrd`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 接单：获取进度数据
export async function getProgress(params) {
  return request(`/csApi/batchTask/getBatTaskInfo`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 获取下载模板信息
export async function getDownloadInfo(params) {
  return request(`/nsApi/recvAdd/fileUrl/get`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 获取上传进度数据
export async function getUploadProgress(params) {
  return request(`/csApi/batchTask/getBatTaskInfo`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 批量回单上传
export async function uploadFileBatchRepeied(params) {
  return request(`/nsApi/recvAdd/batch/returnOrder`, {
    method: 'POST',
    body: params,
  });
}
